namespace Akso.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class Update_Bill_Entity : DbMigration
    {
        public override void Up()
        {
            AlterColumn("dbo.Finance_Bills", "BillType", c => c.String(maxLength: 50, storeType: "nvarchar"));
            AlterColumn("dbo.Finance_Bills", "BillAccount", c => c.String(maxLength: 50, storeType: "nvarchar"));
            AlterColumn("dbo.Finance_Bills", "IncomeAmount", c => c.Decimal(nullable: false, precision: 10, scale: 2));
            AlterColumn("dbo.Finance_Bills", "ExpendAmount", c => c.Decimal(nullable: false, precision: 10, scale: 2));
            AlterColumn("dbo.Finance_Bills", "Remark", c => c.String(maxLength: 200, storeType: "nvarchar"));
            AlterColumn("dbo.Finance_Bills", "CheckProject", c => c.String(maxLength: 50, storeType: "nvarchar"));
            AlterColumn("dbo.Finance_Bills", "CheckCustomer", c => c.String(maxLength: 50, storeType: "nvarchar"));
            AlterColumn("dbo.Finance_Bills", "CheckUser", c => c.String(maxLength: 50, storeType: "nvarchar"));
        }
        
        public override void Down()
        {
            AlterColumn("dbo.Finance_Bills", "CheckUser", c => c.String(unicode: false));
            AlterColumn("dbo.Finance_Bills", "CheckCustomer", c => c.String(unicode: false));
            AlterColumn("dbo.Finance_Bills", "CheckProject", c => c.String(unicode: false));
            AlterColumn("dbo.Finance_Bills", "Remark", c => c.String(unicode: false));
            AlterColumn("dbo.Finance_Bills", "ExpendAmount", c => c.Decimal(nullable: false, precision: 18, scale: 2));
            AlterColumn("dbo.Finance_Bills", "IncomeAmount", c => c.Decimal(nullable: false, precision: 18, scale: 2));
            AlterColumn("dbo.Finance_Bills", "BillAccount", c => c.String(unicode: false));
            AlterColumn("dbo.Finance_Bills", "BillType", c => c.String(unicode: false));
        }
    }
}
